import { type App } from 'vue'
import { permission } from './permission'
import { autoFocus } from './autoFocus'
import { sizeDirect } from './sizeDirect'
import { enterDirect } from './enter'

// 挂载自定义指令入口
export function loadDirectives(app: App) {
  app.directive('permission', permission)
  app.directive('autoFocus', autoFocus)
  app.directive('sizeDirect', sizeDirect)
  app.directive('enter', enterDirect)
}
